[bits 16]
[section .text]

%if _DOS
[org 0x100]                       ; tell compiler that all offsets 
                                  ; must be incremented by 0x100
%endif ; _DOS
            jmp     @@start

%include "condef.inc"
%include "conio.asm"
%include "vesa.asm"

[bits 16]
[section .text]

@@text      db 'hello world', 0

@@start:    call        _con_init

            mov         _REG_COLOR, _CON_COLOR(_COL_DARKGRAY, _COL_LIGHTGRAY)
            call        _con_cls
            
            mov         _REG_XY, _CON_XY(4, 12)
            call        _set_xy
            
            push        cs
            pop         ds
            mov         _REG_TEXT, @@text
            call        _output

%if _DOS
            ret
%elif _RAW
@@endlp:    hlt
            jmp         @@endlp
%else
%error _DOS | _RAW macro must be specified
%endif
